Water = {}
Water.__index = Water
 
function Water.new()
    local instance = {
      typeObject = nil
    }
    
    setmetatable(instance, Water)
    return instance
end

setmetatable(Water,{__index = WorldObject})

function Water:setType(_type)
  self.typeObject = _type
end

function Water:getType()
  return "Water"
end

function Water:getTexture()
  if self.typeObject == "Water1" then
    return textureWater1
  elseif self.typeObject == "Water2" then
    return textureWater2
  elseif self.typeObject == "Water3" then
    return textureWater3
  elseif self.typeObject == "Water4" then
    return textureWater4
  elseif self.typeObject == "Water5" then
    return textureWater5
  elseif self.typeObject == "Water6" then
    return textureWater6
  elseif self.typeObject == "Water7" then
    return textureWater7
  elseif self.typeObject == "Water8" then
    return textureWater8
  elseif self.typeObject == "Water9" then
    return textureWater9
  elseif self.typeObject == "Water10" then
    return textureWater10
  elseif self.typeObject == "Water11" then
    return textureWater11
  elseif self.typeObject == "Water12" then
    return textureWater12
  elseif self.typeObject == "Water13" then
    return textureWater13
  end
end

return Water